<?php
include "config/koneksi.php";

if(isset($_POST['submit']))
{
    $nama_tamu = $_POST['nama_tamu'];
    $email_tamu = $_POST['email_tamu'];
    $judul = $_POST['judul'];
    $pesan_tamu = $_POST['pesan_tamu'];
    //echo "<b> $nama_tamu </b><br>";    
    //echo "<b> $email_tamu </b><br>";    
    //echo "<b> $judul </b><br>";    
    //echo "<b> $pesan_tamu </b><br>";    
	
	$query = mysql_query("insert into buku_tamu(nama_tamu, email_tamu, judul, pesan_tamu) values ('$nama_tamu', '$email_tamu','$judul','$pesan_tamu') ");
}
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SMK Pasundan Rancaekek</title>

<link href="css/templatemo_style.css" rel="stylesheet" type="text/css" />

<link rel="stylesheet" type="text/css" href="css/ddsmoothmenu.css" />
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/ddsmoothmenu.js">

</script>

<script type="text/javascript">

ddsmoothmenu.init({
	mainmenuid: "templatemo_menu", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>
</head>

<body id="subpage">

<div id="templatemo_outer_sub_wrapper">
	<div id="templatemo_sub_wrapper">
    
    	<div id="templatemo_header">		
            <?php
			include "menu.php";
			?>
            <div class="cleaner"></div>

        </div> <!-- end of templatemo header -->
        
        <div id="templatemo_main">
        
          	<div class="col_w960 col_w960_last">
				<div class="col_w300 float_r">
                
                    <h3>Tentang Sekolah</h3>
                    <?php 
					include "menu_kiri.php";
					?>
                
                </div>  
                <div class="col_w600 float_l">
                    
                    <h2></h2>
        		
        		<div id="contact_form">
				<img src="images/login.png">
           			<form name="login" action="cek_login.php" method="POST" onSubmit="return validasi(this)">
					<table>
					<tr><td>Username</td><td> : <input type="text" name="username"></td></tr>
					<tr><td>Password</td><td> : <input type="password" name="password"></td></tr>
					<tr><td colspan="2"><input type="submit" value="Login"></td></tr>
					</table>
					<input type="hidden" name="who" value="guru">
					</form>
        		</div>
                    
                    
                </div>
                
            	<div class="cleaner"></div>   
            </div>        
        </div>
    
    </div> <!-- end of templatemo_wrapper -->
</div> <!-- end of templatemo_outer_wrapper -->

<?php
	include "footer.php";
?>

</body>
</html>